hackerrank time complexity Primality problem

welcome to shbcf.ru